package sg.edu.nus.dbd.formbean;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ChartData {

	private String reportName;

	private Date startDate;

	private Date endDate;

	private Map<String, String> parameter = new HashMap<String, String>();

	private ChartDataItem[] reportDataItems = null;

	private int chartType = 0;

	private String chartDescription = null;

	public Map<String, String> getParameter() {
		return parameter;
	}

	public void setParameter(Map<String, String> parameter) {
		this.parameter = parameter;
	}

	public ChartDataItem[] getReportDataItems() {
		return reportDataItems;
	}

	public void setReportDataItems(ChartDataItem[] reportDataItems) {
		this.reportDataItems = reportDataItems;
	}

	public void setReportDataItems(List<ChartDataItem> lstItems) {
		if (lstItems != null) {
			reportDataItems = new ChartDataItem[lstItems.size()];
			reportDataItems = lstItems.toArray(reportDataItems);
		}
	}

	public String getReportName() {
		return reportName;
	}

	public void setReportName(String reportName) {
		this.reportName = reportName;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public int getChartType() {
		return chartType;
	}

	public void setChartType(int chartType) {
		this.chartType = chartType;
	}

	public String getChartDescription() {
		return chartDescription;
	}

	public void setChartDescription(String chartDescription) {
		this.chartDescription = chartDescription;
	}

}
